package org.zjx.common.route;

import lombok.Data;
import lombok.SneakyThrows;
import org.zjx.common.entity.Address;

import java.awt.*;
import java.util.List;

/**
 * 使用飞行旗
 */
public class FlyingFlagsRoute extends AbstractRoute {
    public FlyingFlagsRoute() {}

    @SneakyThrows
    public FlyingFlagsRoute(Address startAddress, Address endAddress) {
        super(startAddress, endAddress, 3);
        if (startAddress == null || endAddress == null) throw new NullPointerException();
    }

    /**
     * 飞行旗点位
     */
    @Data
    public static class FlyingFlagsPoint {
        private String cityName; // 飞行旗城市
        private List<Point> points; //飞行旗点位

        public FlyingFlagsPoint(String cityName, List<Point> points) {
            this.cityName = cityName;
            this.points = points;
        }
    }

}
